package com.wanmait.movie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
* Created by Mybatis Generator 2023/11/30
*/
@Data
@TableName(value = "participating")
@Accessors(chain = true)
public class Participating implements Serializable {

    /**
     * 演员id
     */
    @TableField(value = "actor_id")
    private Integer actorId;

    /**
     * 电影id
     */
    @TableField(value = "movie_id")
    private Integer movieId;

    /**
     * 饰演角色
     */
    @TableField(value = "role")
    private String role;

    /**
     * 排序
     */
    @TableField(value = "sort")
    private Integer sort;

    /**
     * 角色介绍
     */
    @TableField(value = "introduce")
    private String introduce;

    @TableField(value = "enable")
    private Boolean enable;

    /**
     * 添加时间
     */
    @Field(name = "insert_time" , type = FieldType.Date,format = {} , pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    @TableField(value = "insert_time")
    private Date insertTime;

    /**
     * 修改时间
     */
    @Field(name = "update_time" , type = FieldType.Date,format = {} , pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 添加人
     */
    @Field(name = "insert_admin_id",type = FieldType.Integer)
    @TableField(value = "insert_admin_id")
    private Integer insertAdminId;

    /**
     * 修改人
     */
    @Field(name = "update_admin_id",type = FieldType.Integer)
    @TableField(value = "update_admin_id")
    private Integer updateAdminId;

    private static final long serialVersionUID = 1L;

    public static final String COL_ACTOR_ID = "actor_id";

    public static final String COL_MOVIE_ID = "movie_id";

    public static final String COL_ROLE = "role";

    public static final String COL_SORT = "sort";

    public static final String COL_INTRODUCE = "introduce";

    public static final String COL_INSERT_TIME = "insert_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_INSERT_ADMIN_ID = "insert_admin_id";

    public static final String COL_UPDATE_ADMIN_ID = "update_admin_id";

    public static final String COL_ENABLE = "enable";
}